package com.xc.hotelmgr.order.modules.order.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.xc.hotelmgr.order.common.utils.Constant;
import com.xc.hotelmgr.order.modules.order.entity.DtOrderChannelsEntity;

import java.util.List;

/**
 * 采购渠道
 *
 * @author kemmy
 * @email kemmy@gmail.com
 * @date 2020-12-03 11:41:02
 */
public interface DtOrderChannelsService extends IService<DtOrderChannelsEntity> {

    DtOrderChannelsEntity sqlSelectKey(int chanel, String userName);

    void refreshToken(String aid,String accessToken,String refreshToken,Integer expiresIn);

    List<DtOrderChannelsEntity> sqlSelectByChanel(Constant.Channel ctrip);

    Integer sqlIsAutoByHotelId(String hotelId);

    DtOrderChannelsEntity sqlSelectByOrderId(Integer channel, String orderId);

    DtOrderChannelsEntity getByStoreIdAndChannel(Integer storeId, Integer channel);
}

